<table class="outer" cellspacing="1">

  <{if $block.disp_mode == 0}>
  <tr>
    <th class="head" nowrap="nowrap"><{$smarty.const._MB_NEWBB_FORUM}></th>
    <th class="head" nowrap="nowrap"><{$smarty.const._MB_NEWBB_TITLE}></th>
    <th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_RPLS}></th>
    <th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_VIEWS}></th>
    <th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_AUTHOR}></th>
  </tr>

  <{foreach item=topic from=$block.topics}>
  <tr class="<{cycle values="even,odd"}>">
    <td><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$topic.forum_id}>"><{$topic.forum_name}></a></td>
    <td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&amp;forum=<{$topic.forum_id}>">
		<{if $topic.topic_subject}>
		<{$topic.topic_subject}>
		<{/if}>
		<{$topic.title}></a>
	</td>
    <td align="center"><{$topic.replies}></td>
    <td align="center"><{$topic.views}></td>
    <td align="right"><{$topic.time}><br /><{$topic.topic_poster}></td>
  </tr>
  <{/foreach}>

  <{elseif $block.disp_mode == 1}>

  <tr>
    <th class="head" nowrap="nowrap"><{$smarty.const._MB_NEWBB_TOPIC}></th>
    <th class="head" align="center" nowrap="nowrap"><{$smarty.const._MB_NEWBB_AUTHOR}></th>
  </tr>

  <{foreach item=topic from=$block.topics}>
  <tr class="<{cycle values="even,odd"}>">
    <td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&amp;forum=<{$topic.forum_id}>">
		<{if $topic.topic_subject}>
		<{$topic.topic_subject}>
		<{/if}>
		<{$topic.title}></a><{$topic.topic_page_jump}>
	</td>
    <td align="right"><{$topic.time}><br /><{$topic.topic_poster}></td>
  </tr>
  <{/foreach}>

  <{elseif $block.disp_mode == 2}>

  <{foreach item=topic from=$block.topics}>
  <tr class="<{cycle values="even,odd"}>">
    <td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&amp;forum=<{$topic.forum_id}>">
		<{if $topic.topic_subject}>
		<{$topic.topic_subject}>
		<{/if}>
		<{$topic.title}></a>
	</td>
  </tr>
  <{/foreach}>

  <{/if}>

</table>

<{if $block.indexNav}>
<div style="text-align:right; padding: 5px;">
<a href="<{$xoops_url}>/modules/newbb/viewall.php"><{$smarty.const._MB_NEWBB_ALLTOPICS}></a> |
<a href="<{$xoops_url}>/modules/newbb/"><{$smarty.const._MB_NEWBB_VSTFRMS}></a>
</div>
<{/if}>